#ifndef IPSETDIALOG_H
#define IPSETDIALOG_H

#include <QDialog>

namespace Ui {
class IpSetDialog;
}

class IpSetDialog : public QDialog
{
    Q_OBJECT

public:
    explicit IpSetDialog(QWidget *parent = 0);
    ~IpSetDialog();

    /**
     * @brief isEditing             判断文本框是否正在编辑
     */
    bool isEditing;

    void changeLanguage();

signals:
    void hmiIpSettingSignal(QString ip);

private slots:
    void on_sureBtn_clicked();

    void on_cancelBtn_clicked();

    void on_hmi1_lineEdit_cursorPositionChanged(int arg1, int arg2);

    void on_hmi2_lineEdit_cursorPositionChanged(int arg1, int arg2);

    void on_hmi3_lineEdit_cursorPositionChanged(int arg1, int arg2);

    void on_hmi4_lineEdit_cursorPositionChanged(int arg1, int arg2);

    void on_hmi4_lineEdit_editingFinished();

    void on_hmi3_lineEdit_editingFinished();

    void on_hmi2_lineEdit_editingFinished();

    void on_hmi1_lineEdit_editingFinished();

    void on_hmi1_lineEdit_textEdited(const QString &arg1);

    void on_hmi2_lineEdit_textEdited(const QString &arg1);

    void on_hmi3_lineEdit_textEdited(const QString &arg1);

    void on_hmi4_lineEdit_textEdited(const QString &arg1);

private:
    Ui::IpSetDialog *ui;
};

#endif // IPSETDIALOG_H
